package com.hsy.directseeding.common;

/**
 * Created by hsy on 2016/3/23.
 */
public class Consts {

    public static final boolean DEBUG = true;

    public static final String TOKEN = "token";
    public static final String KEY_TOKEN = "key_token";
    public static final String KEY_LOGIN = "KEY_LOGIN";
    public static final String KEY_NICK_NAME = "KEY_NICK_NAME";

    public static final String PROCESS_NAME_BIB = "com.hsy.entertainments";
    public static final String UID = "uid";
    public static final String WEIXIN_ID = "wxa22f82f74e18da54";

    public static final String ERROR = "error";
    public static final String MSG = "msg";
    public static final String RESULT = "result";

    public static final int TYPE_CODE_ERROR = 0;
    public static final int TYPE_NETWORK_ERROR = 1;
    public static final int TYPE_AUTH_ERROR = 2;


    public static final String IMAGE = "http://huiyuan.dev.hsydev.com/Upload/image/";

    public static final class Actions {
        public static final String ACTION_ON_RONG_MESSAGE_RECEIVED = "ACTION_ON_RONG_MESSAGE_RECEIVED";
        public static final String ACTION_ON_CIRCLE_MESSAGE_RECEIVED = "ACTION_ON_CIRCLE_MESSAGE_RECEIVED";
        public static final String ACTION_AUTH_FAILURE = "ACTION_AUTH_FAILURE";
    }

    ;

    public class Keys {
        public static final String KEY_CIRCLE_UNREAD_NUM = "KEY_CIRCLE_UNREAD_NUM";
    }

    public class RequestCodes {
        public static final int GET_LOCATION = 0;
    }

    public class Apis {
        public static final String POST_LOGIN = Config.API_SERVER + "Auth/login";
        public static final String POST_CHANGE_PASSWORD = Config.API_SERVER + "User/changePassword";
        public static final String POST_MY = Config.API_SERVER + "User/my";
        public static final String POST_MAIN_LIST = Config.API_SERVER + "Index/goodsList";
    }

    public static class BusEventKey {
        public static final int FINISH_ADD_FRIENDS = 0;
    }

    public static class IntentKeys {
        public static final String CIRCLE_NEWS_NOTIFICATION_DATA = "CIRCLE_NEWS_NOTIFICATION_DATA";
    }

    public static class EventBusCommands {
        public static final int UPDATE_CIRCLE_MEMBER_STATUS = 0x9001;
        public static final int UPDATE_MESSAGE_LIST = 0x9002;
        public static final int UPDATE_CIRCLE_LIST = 0x9003;
        public static final int UPDATE_CIRCLE_UNREAD_STATUS = 0x9004;
    }
}
